<?php

App::uses('Category', 'Model');
App::uses('User', 'Model');
?>
<nav class="navbar navbar-fixed-top navbar-inverse hidden-print" role="banner">
    <div class="container">
        <div id="navbar" class="navbar-collapse collapse">
        <?php 
        if ($loggedIn === true){
            switch($authUser['category_id']){
                case Category::KAOISAMA:
                    echo $this->element('menuKaoisama'); 
                    break;
                case Category::ADMIN:
                    echo $this->element('menuAdmin'); 
                    break;
                case Category::SUPERVISOR:
                    echo $this->element('menuSupervisor'); 
                    break;
                case Category::ASOCIADO:
                    echo $this->element('menuAsociado'); 
                    break;
                case Category::SOLOLECTURA:
                    echo $this->element('menuSoloLectura');
                    break;
                case Category::FACILITADOR:
                    echo $this->element('menuFacilitador');
                    break;
            }
        }else{
            echo $this->element('menuOff'); 
        }
        ?>
        </div>
    </div>
</nav>